package com.ctshk.rpc.iotc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ctshk.rpc.iotc.entity.OperateBankPreference;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 * 银联优惠 Mapper 接口
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-01-22
 */
public interface OperateBankPreferenceMapper extends BaseMapper<OperateBankPreference> {

    @Update("UPDATE t_operate_bank_preference SET full_amount = null,reduction_amount = null ," +
            "discount_percent = null ,max_discount = null WHERE id = #{id} AND is_deleted = 0")
    void updateDiscountTypeById(@Param("id") Long id);

}
